package com.caiyouxi.goods.mapper;

import com.caiyouxi.goods.model.GoodsInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;

/**
 * 商品相关
 * chensong
 */
@Mapper
public interface GoodsInfoMapper {
    
    int delete_goods_info(Long id);
    
    int add_goods_info(GoodsInfo goodsInfo);
    
    int update_goods_info(GoodsInfo goodsInfo);

    GoodsInfo select_goods_info(Long id);

    GoodsInfo select_goods_info_on_usefull(HashMap<String,Object> map);
    
    GoodsInfo select_goods_info_by_app_id(String app_id);

    int update_status(GoodsInfo goodsInfo);
}
